﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain
{
    /// <summary>
    /// 菜单
    /// </summary>
    [Table("Menu")]
    public class Menu
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        [Key]
        public int MenuId {  get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? MenuName {  get; set; }
        /// <summary>
        /// 要跳转的地址
        /// </summary>
        public string? MenuUrl {  get; set; }
        /// <summary>
        /// 父ID
        /// </summary>
        public int MenuPid {  get; set; }
        /// <summary>
        /// 菜单删除标志
        /// </summary>
        public bool MenuDelete {  get; set; }
        /// <summary>
        /// 添加人
        /// </summary>
        public string? CreateBy {  get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateBy {  get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set;}

    }
}
